package data;

import java.io.*;

public class Users implements Serializable
{
    private ConnType myType;
    private String myUser;
    private String myPasswd;

    public Users(ConnType myType,String myUser, String myPasswd)
    {
        this.myType = myType;
        this.myUser = myUser;
        this.myPasswd = myPasswd;
    }

    public ConnType getType()
    {
        return myType;
    }

    public boolean auth(String user, String passwd)
    {
        if (myUser.equals(user) && myPasswd.equals(passwd))
            return true;
        else
            return false;
    }
}
